<?php /* Smarty version Smarty-3.1.11, created on 2013-03-14 11:22:49
         compiled from "./smarty/templates/booking_step_one.tpl" */ ?>
<?php /*%%SmartyHeaderCode:154251385141b3091d2b02-16412691%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ec28dbea67c9217a4a744fa21aee4387b81b7e66' => 
    array (
      0 => './smarty/templates/booking_step_one.tpl',
      1 => 1363096165,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '154251385141b3091d2b02-16412691',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'book' => 0,
    'roomIndex' => 0,
    'room' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_5141b309231f97_98144362',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5141b309231f97_98144362')) {function content_5141b309231f97_98144362($_smarty_tpl) {?><div  id="booking_step1" class="active">
    <form method="POST" action="bookingPage.php">
    <table width="100%" cellspacing="0">
        <tr class="row">
            <td><h2 id="step1_guest_details" style="color:#000;">Guest Details</h2></td>
        </tr>
    </table>
    <?php  $_smarty_tpl->tpl_vars['room'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['room']->_loop = false;
 $_smarty_tpl->tpl_vars['roomIndex'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['book']->value['rooms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['room']->key => $_smarty_tpl->tpl_vars['room']->value){
$_smarty_tpl->tpl_vars['room']->_loop = true;
 $_smarty_tpl->tpl_vars['roomIndex']->value = $_smarty_tpl->tpl_vars['room']->key;
?> 
        <table width="100%">
            <tr><td><h5 class="roomTitle"> Room <?php echo $_smarty_tpl->tpl_vars['roomIndex']->value;?>
: Adults: <?php echo $_smarty_tpl->tpl_vars['room']->value['adults'];?>
 Children: <?php echo $_smarty_tpl->tpl_vars['room']->value['children'];?>
</h5></td></tr>
            <tr><td><label>First Name</label></td></tr>
            <tr>
                <td>
                    <input id="guest.firstName<?php echo $_smarty_tpl->tpl_vars['roomIndex']->value;?>
.continue" type="hidden" value="0" />
                    <input type="text" 
                           value="<?php if ($_smarty_tpl->tpl_vars['room']->value['firstname']!=''){?><?php echo $_smarty_tpl->tpl_vars['room']->value['firstname'];?>
<?php }?>" 
                           maxlength="100" 
                           name="guest.firstName<?php echo $_smarty_tpl->tpl_vars['roomIndex']->value;?>
" 
                           onBlur="checkNameValidity(this, 'errorFirstName<?php echo $_smarty_tpl->tpl_vars['roomIndex']->value;?>
', 'guest.firstName<?php echo $_smarty_tpl->tpl_vars['roomIndex']->value;?>
.continue');" />
                    <div id="errorFirstName<?php echo $_smarty_tpl->tpl_vars['roomIndex']->value;?>
" class="error"></div>
                </td>
            </tr>
            <tr><td><label>Last Name</label></td></tr>
            <tr>
                <td>
                    <input id="guest.lastName<?php echo $_smarty_tpl->tpl_vars['roomIndex']->value;?>
.continue" type="hidden" value="0" />
                    <input type="text" 
                           value="<?php if ($_smarty_tpl->tpl_vars['room']->value['lastname']!=''){?><?php echo $_smarty_tpl->tpl_vars['room']->value['lastname'];?>
<?php }?>" 
                           maxlength="100" 
                           name="guest.lastName<?php echo $_smarty_tpl->tpl_vars['roomIndex']->value;?>
" 
                           onBlur="checkNameValidity(this, 'errorLastName<?php echo $_smarty_tpl->tpl_vars['roomIndex']->value;?>
', 'guest.lastName<?php echo $_smarty_tpl->tpl_vars['roomIndex']->value;?>
.continue');" />
                    <div id="errorLastName<?php echo $_smarty_tpl->tpl_vars['roomIndex']->value;?>
" class="error"></div>
                </td>
            </tr>
            <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['room']->value['smokingPreference'];?>
" name="rooms<?php echo $_smarty_tpl->tpl_vars['roomIndex']->value;?>
.smokingPreference" />
        </table>
    <?php } ?>
    <table width="100%">
        <tr class="row" ><td> <h2 style="color:#000;" >Contact Details</h2></td></tr>
        <tr><td><p>We require a valid email address to contact you with the details of your booking.</p></td></tr>
        <tr><td><label>Email Address</label></td></tr>
        <tr>
            <td>
                <input id="contactDetails.emaiAddress.continue" type="hidden" value="0" />
                <input id='email1' type="text" value="<?php if ($_smarty_tpl->tpl_vars['book']->value['email']!=''){?><?php echo $_smarty_tpl->tpl_vars['book']->value['email'];?>
<?php }?>" 
                       maxlength="100" 
                       name="contactDetails.email" 
                       onBlur="checkEmailValidity(this, 'emailError', 'contactDetails.emaiAddress.continue');"/>
                <div  id="emailError" class="error"></div>
            </td>
        </tr>
        <tr><td><label>Confirm Email Address</label></td></tr>
        <tr>
            <td>
                <input id="contactDetails.confirmEmailAddress.continue" type="hidden" value="0" />
                <input type="text" id="email2" value="<?php if ($_smarty_tpl->tpl_vars['book']->value['confirmEmail']!=''){?><?php echo $_smarty_tpl->tpl_vars['book']->value['confirmEmail'];?>
<?php }?>" 
                       maxlength="100" 
                       name="contactDetails.confirmEmail" 
                       onBlur="emailMatch('email1', 'email2', 'confirmEmailError', 'contactDetails.confirmEmailAddress.continue');" />
                <div class="error" id="confirmEmailError"></div>
            </td>
        </tr>
        <tr><td><p> Needed if there are questions about your reservation.</p></td></tr>
        <tr><td><label>Phone Number:</label></td></tr>
        <tr>
            <td>
                <input id="contactDetails.phoneNumber.continue" type="hidden" value="0" />
                <input type="text" value="<?php if ($_smarty_tpl->tpl_vars['book']->value['phone']!=''){?><?php echo $_smarty_tpl->tpl_vars['book']->value['phone'];?>
<?php }?>" 
                       maxlength="16" 
                       name="contactDetails.phoneNumber" 
                       onBlur="checkPhoneValidity(this, 'phoneError', 'contactDetails.phoneNumber.continue');" />
                <div class="error" id="phoneError">
                </div>
            </td>
        </tr>
        <tr>
            <td align="right">
                <input id="go_to_step2" type="hidden" value="stop" />
                <input id="booking_page_step" name="step" type="hidden" value="0" />
                <button value="Continue" onClick="chechFileldsValidityStep1();"  name="nextStep" type="submit">Continue</button>
            </td>
        </tr>
    </table>
    </form>
</div><?php }} ?>